<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue</title>
</head>
<body>
    <!-- view视图部分 -->
    <div id="app">
        <input type="button" value="点击" id="btn" v-on:click='say'>
        <!-- 等价于 -->
        <input type="button" value="点击" id="btn" @click='say'>
    </div>
    <script src="vue.js"></script>
    <script>
         var vm = new Vue({
            el:"#app",
            // Model模型
            data : {

            },
            methods: {
                say : function(){
                    alert('hello,  Vue.js!');
                }
            },
         });
         
    </script>
</body>
</html>